package com.fingard.dsp.bank.reqrespobj.billpool;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.xml.XmlTextReader;

/*可操作票据查询
 * */
public class ReqB301OperBillQry extends RequestBase {
//    //    指令
//    public String CommandCode;
//    //    是否集团
//    public String IsGroup;
    //    帐号
    public String AccountNum;
//    //    票据状态   1.托管 2 .托管解除  3.质押入池 4.托管发起托收 5.质押发起托收
//    public String BillState;
    //    开始日期
    public String StartDate;
    //    结束日期
    public String EndDate;
    //    票据号
    public String BilNo;
    //    票据类型 0-全部 1-银承 2-商承
    public String BillType;
//    //    收支标志
//    public String PayReceiveFlag;
    //    票据金额上限
    public String BillMoneyTopLimit;
    //    票据金额下限
    public String BillMoneyLowLimit;
    //    到期日上限
    public String BillDateTopLimit;
    //    到期日下限
    public String BillDateLowLimit;
//    //    指令类型
//    public String TransType;
//    //    操作类型 1 入池 2入池撤销 3 出池
//    public String OperType;
    //    流水号
    public String ReqSeqID;

    //以下为复用电票ReqB001OperBillQryDetail 字段
    // 业务类型 1-出票 2-承兑 3-收票 4-背书转让 5-质押 6-解质押 7-出票保证 8-承兑保证 9-背书保证 10-贴现 11-回购式贴现赎回 12-提示付款 13-追索 14-同意清偿
    public String BusiType;

    // 查询类型 1-申请 2-应答 3-撤回
    public String QueryType;

//    //    票据币种
//    public String BillCur;

//    // 对手账号
//    public String ReceAct;

//    // 逾期标志
//    public String OverdueFlag;

    // 追索类型 1-拒付 2-非拒付
    public String RecourseType;

//    public String ActArea;

    //客户Id
    public String ClientId;
    //出票人名称
    public String FrNam;
    //承兑人名称
    public String AcepNam;
    //收票人名称
    public String ToNam;
    //出质人省市代码
    public String CpsrProv;
    //出质人账号
    public String CpsrAccNo;
    //质押申请日 开始
    public String CztnDatFr;
    //质押申请日 结束
    public String CztnDatTo;

    private XmlTextReader xmlReader;

    public ReqB301OperBillQry(XmlTextReader p_xmlReader, ReqRespHeader p_header) throws Exception {
        reqHeader = p_header;
        xmlReader = p_xmlReader;

//        CommandCode = xmlReader.getSimpleText("CommandCode");
//        IsGroup = xmlReader.getSimpleText("IsGroup");
        AccountNum = xmlReader.getSimpleText("AccountNum");
//        BillState = xmlReader.getSimpleText("BillState");
        StartDate = xmlReader.getSimpleText("StartDate");
        EndDate = xmlReader.getSimpleText("EndDate");
        BilNo = xmlReader.getSimpleText("BilNo");
        BillType = xmlReader.getSimpleText("BillType");
//        PayReceiveFlag = xmlReader.getSimpleText("PayReceiveFlag");
        BillMoneyTopLimit = xmlReader.getSimpleText("BillMoneyTopLimit");
        BillMoneyLowLimit = xmlReader.getSimpleText("BillMoneyLowLimit");
        BillDateTopLimit = xmlReader.getSimpleText("BillDateTopLimit");
        BillDateLowLimit = xmlReader.getSimpleText("BillDateLowLimit");
//        TransType = xmlReader.getSimpleText("TransType");
//        OperType = xmlReader.getSimpleText("OperType");
        ReqSeqID = xmlReader.getSimpleText("ReqSeqID");
        BusiType = xmlReader.getSimpleText("BusiType");
        QueryType = xmlReader.getSimpleText("QueryType");
//        BillCur = xmlReader.getSimpleText("BillCur");
//        ReceAct = xmlReader.getSimpleText("ReceAct");
//        OverdueFlag = xmlReader.getSimpleText("OverdueFlag");
        RecourseType = xmlReader.getSimpleText("RecourseType");
//        ActArea = xmlReader.getSimpleText("ActArea");

        ClientId = xmlReader.getSimpleText("ClientId");
        FrNam = xmlReader.getSimpleText("FrNam");
        AcepNam = xmlReader.getSimpleText("AcepNam");
        ToNam = xmlReader.getSimpleText("ToNam");
        CpsrProv = xmlReader.getSimpleText("CpsrProv");
        CpsrAccNo = xmlReader.getSimpleText("CpsrAccNo");
        CztnDatFr = xmlReader.getSimpleText("CztnDatFr");
        CztnDatTo = xmlReader.getSimpleText("CztnDatTo");
    }

}
